/* This is the bottom panel for the GUI that contains stances, weapons, and infos
 * 
 */

package gui.battle;

import item.ship.*;

import javax.swing.*;

import java.awt.*;

public class ShipInfoPanel extends JPanel{

	
	SNPPanel snp; //the stance and action point panel
	WeaponsPanel weapons; //the weapons panel
	InfoPanel info; //the info panel
	Ship ship; //the current ship
	
	
	//one param constructor that sets up the bar for Ship s
	public ShipInfoPanel(Ship s){
		
		this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		this.setMaximumSize(new Dimension(1200, 100));
		this.setOpaque(false);
		
		ship = s;
		snp = new SNPPanel(s);
		weapons = new WeaponsPanel(s);
		info = new InfoPanel(s);
		
		this.add(snp);
		this.add(weapons);
		this.add(info);
	}//Ship constructor
	
	
	//updates the action point bar
	public void updateActionPoints(){
		
		snp.apb.update();
	
	}//updateActionPoints
}//ShipInfoPanel